<template>
  <div>
    <h3>sonone</h3>
    <h3>{{ $attrs.info }}</h3>
  </div>
</template>

<script>
export default {
  props: ["msg"],
  data() {
    return {
      flag: 1,
    };
  },
  mounted() {
    console.log(this.$attrs);
    console.log(this.$attrs.info);
    // $listeners获取的是标签组件上绑定的事件名及对应的回调函数
    console.log(this.$listeners);
    this.$listeners.show(this.flag);
    this.$listeners.shuaiQi();
    this.$listeners.click();
  },
};
</script>

<style lang="scss" scoped>
</style>